Skip to content

chore: Android Move graphql queries in the code#507

Merged
abelonogov-ld merged 1 commit intomainfrom
andrey/graphql-into-code
Apr 28, 2026
Merged

chore: Android Move graphql queries in the code#507
abelonogov-ld merged 1 commit intomainfrom
andrey/graphql-into-code

Conversation

@abelonogov-ld
Copy link
Copy Markdown
Contributor

@abelonogov-ld abelonogov-ld commented Apr 28, 2026

Summary

Move graphql queries into code files not load them every time in runtime, weirdly it helps to make code compatibkle with .NET10 and usable in the Java server code.


Note

Medium Risk
Medium risk because it changes the public GraphQLClient.execute signature and shifts query text from resources to code, where string formatting/escaping mistakes could break production GraphQL calls.

Overview
GraphQL queries are now inlined in code instead of loaded from resources at runtime. GraphQLClient.execute now takes a query: String and the internal loadQuery resource loader is removed.

SamplingApiService and SessionReplayApiService embed their GraphQL operations as Kotlin multiline strings and pass them directly to execute, and the corresponding .graphql resource files (plus the test query resource) are deleted. Tests are updated accordingly, including removing the missing-file test case and adjusting mocks to accept the new execute parameter.

Reviewed by Cursor Bugbot for commit ffa3cc6. Bugbot is set up for automated code reviews on this repo. Configure here.

@abelonogov-ld abelonogov-ld requested a review from a team as a code owner April 28, 2026 16:41
@abelonogov-ld abelonogov-ld merged commit f66e405 into main Apr 28, 2026
28 checks passed
@abelonogov-ld abelonogov-ld deleted the andrey/graphql-into-code branch April 28, 2026 17:15
abelonogov-ld added a commit that referenced this pull request Apr 28, 2026
…bservability-sdk into andrey/dotnet-otel-update

* 'andrey/dotnet-otel-update' of github.com:launchdarkly/observability-sdk:
  chore: Android Move graphql queries in the code (#507)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants